Integrand size = 17, antiderivative size = 27 \[ \int \frac {1-3 \tan (x)}{\sqrt {4+3 \tan (x)}} \, dx=\sqrt {2} \text {arctanh}\left (\frac {3+\tan (x)}{\sqrt {2} \sqrt {4+3 \tan (x)}}\right ) \]
[Out]
Time = 0.04 (sec) , antiderivative size = 27, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.118, Rules used = {3616, 213} \[ \int \frac {1-3 \tan (x)}{\sqrt {4+3 \tan (x)}} \, dx=\sqrt {2} \text {arctanh}\left (\frac {\tan (x)+3}{\sqrt {2} \sqrt {3 \tan (x)+4}}\right ) \]
[In]
[Out]
Rule 213
Rule 3616
Rubi steps \begin{align*} \text {integral}& = -\left (18 \text {Subst}\left (\int \frac {1}{-162+x^2} \, dx,x,\frac {27+9 \tan (x)}{\sqrt {4+3 \tan (x)}}\right )\right ) \\ & = \sqrt {2} \text {arctanh}\left (\frac {3+\tan (x)}{\sqrt {2} \sqrt {4+3 \tan (x)}}\right ) \\ \end{align*}
Result contains complex when optimal does not.
Time = 0.93 (sec) , antiderivative size = 61, normalized size of antiderivative = 2.26 \[ \int \frac {1-3 \tan (x)}{\sqrt {4+3 \tan (x)}} \, dx=\frac {(3-i) \text {arctanh}\left (\frac {\sqrt {4+3 \tan (x)}}{\sqrt {4-3 i}}\right )}{\sqrt {4-3 i}}+\frac {(3+i) \text {arctanh}\left (\frac {\sqrt {4+3 \tan (x)}}{\sqrt {4+3 i}}\right )}{\sqrt {4+3 i}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(51\) vs. \(2(22)=44\).
Time = 0.05 (sec) , antiderivative size = 52, normalized size of antiderivative = 1.93
method | result | size |
derivativedivides | \(-\frac {\sqrt {2}\, \ln \left (9+3 \tan \left (x \right )-3 \sqrt {4+3 \tan \left (x \right )}\, \sqrt {2}\right )}{2}+\frac {\sqrt {2}\, \ln \left (9+3 \tan \left (x \right )+3 \sqrt {4+3 \tan \left (x \right )}\, \sqrt {2}\right )}{2}\) | \(52\) |
default | \(-\frac {\sqrt {2}\, \ln \left (9+3 \tan \left (x \right )-3 \sqrt {4+3 \tan \left (x \right )}\, \sqrt {2}\right )}{2}+\frac {\sqrt {2}\, \ln \left (9+3 \tan \left (x \right )+3 \sqrt {4+3 \tan \left (x \right )}\, \sqrt {2}\right )}{2}\) | \(52\) |
parts | \(-\frac {\sqrt {2}\, \ln \left (9+3 \tan \left (x \right )-3 \sqrt {4+3 \tan \left (x \right )}\, \sqrt {2}\right )}{2}+\frac {\sqrt {2}\, \ln \left (9+3 \tan \left (x \right )+3 \sqrt {4+3 \tan \left (x \right )}\, \sqrt {2}\right )}{2}\) | \(52\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 47 vs. \(2 (22) = 44\).
Time = 0.25 (sec) , antiderivative size = 47, normalized size of antiderivative = 1.74 \[ \int \frac {1-3 \tan (x)}{\sqrt {4+3 \tan (x)}} \, dx=\frac {1}{2} \, \sqrt {2} \log \left (\frac {\tan \left (x\right )^{2} + 2 \, {\left (\sqrt {2} \tan \left (x\right ) + 3 \, \sqrt {2}\right )} \sqrt {3 \, \tan \left (x\right ) + 4} + 12 \, \tan \left (x\right ) + 17}{\tan \left (x\right )^{2} + 1}\right ) \]
[In]
[Out]
\[ \int \frac {1-3 \tan (x)}{\sqrt {4+3 \tan (x)}} \, dx=- \int \frac {3 \tan {\left (x \right )}}{\sqrt {3 \tan {\left (x \right )} + 4}}\, dx - \int \left (- \frac {1}{\sqrt {3 \tan {\left (x \right )} + 4}}\right )\, dx \]
[In]
[Out]
\[ \int \frac {1-3 \tan (x)}{\sqrt {4+3 \tan (x)}} \, dx=\int { -\frac {3 \, \tan \left (x\right ) - 1}{\sqrt {3 \, \tan \left (x\right ) + 4}} \,d x } \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 57 vs. \(2 (22) = 44\).
Time = 0.30 (sec) , antiderivative size = 57, normalized size of antiderivative = 2.11 \[ \int \frac {1-3 \tan (x)}{\sqrt {4+3 \tan (x)}} \, dx=\frac {1}{2} \, \sqrt {2} \log \left (\frac {3}{5} \cdot 25^{\frac {1}{4}} \sqrt {10} \sqrt {3 \, \tan \left (x\right ) + 4} + 3 \, \tan \left (x\right ) + 9\right ) - \frac {1}{2} \, \sqrt {2} \log \left (-\frac {3}{5} \cdot 25^{\frac {1}{4}} \sqrt {10} \sqrt {3 \, \tan \left (x\right ) + 4} + 3 \, \tan \left (x\right ) + 9\right ) \]
[In]
[Out]
Time = 0.69 (sec) , antiderivative size = 35, normalized size of antiderivative = 1.30 \[ \int \frac {1-3 \tan (x)}{\sqrt {4+3 \tan (x)}} \, dx=\sqrt {2}\,\left (\mathrm {atan}\left (\sqrt {6\,\mathrm {tan}\left (x\right )+8}\,\left (\frac {1}{10}-\frac {3}{10}{}\mathrm {i}\right )\right )-\mathrm {atan}\left (\sqrt {6\,\mathrm {tan}\left (x\right )+8}\,\left (\frac {1}{10}+\frac {3}{10}{}\mathrm {i}\right )\right )\right )\,1{}\mathrm {i} \]
[In]
[Out]